<!DOCTYPE html>
<html lang="en">

    <head>

        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <title>Bootstrap Login Form Template</title>


        <link rel="stylesheet" href="../../public/assets/bootstrap/css/bootstrap.min.css">
        <link rel="stylesheet" href="../../public/assets/font-awesome/css/font-awesome.min.css">
		<link rel="stylesheet" href="../../public/assets/css/form-elements.css">
        <link rel="stylesheet" href="../../public/assets/css/style.css">
        <link rel="stylesheet" href="../../public/assets/css/bootstrapValidator.css">

    </head>

    <body style="background: url('../../public/assets/img/backgrounds/1.jpg') no-repeat;background-size:100%">
        <!-- Top content -->
        <div class="top-content">
            <div class="inner-bg">
                <div class="container">
                    <div class="row">
                        <div class="col-sm-8 col-sm-offset-2 text">
                            <h1><strong>周口师范学院</strong> 智慧大棚登录系统</h1>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-6 col-sm-offset-3 form-box">
                        	<div class="form-top">
                        		<div class="form-top-left">
                        			<h3>登录</h3>
                            		<p>输入账号和密码登录:</p>
                        		</div>
                        		<div class="form-top-right">
                        			<i class="fa fa-key"></i>
                        		</div>
                            </div>
                            <div class="form-bottom">
			                    <form role="form" action="" method="post" class="login-form">
			                    	<div class="form-group">
			                    		<label class="sr-only" for="form-username">账号</label>
			                        	<input type="text" name="form-username" placeholder="账号" class="form-username form-control" id="form-username">
			                        </div>
			                        <div class="form-group">
			                        	<label class="sr-only" for="form-password">密码</label>
			                        	<input type="password" name="form-password" placeholder="密码" class="form-password form-control" id="form-password">
			                        </div>
			                        <button type="submit" class="btn">登录</button>
			                    </form>
		                    </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </body>
</html>
<script src="../../public/assets/js/jquery-1.11.1.min.js"></script>
<script src="../../public/assets/bootstrap/js/bootstrap.min.js"></script>
<script src="../../public/assets/js/bootstrapValidator.js"></script>
<script>
    $('.btn').click(function () {
      var username =$('#form-username').val();
      console.log(username);
        if(username == ''){
          alert('请输入账号');
          return false;
        }
    })
</script>